package com.lkm.app_ui.m.Imple.push.handle;

import android.content.Context;

import com.lkm.app_ui.RouterUINavigation;
import com.lkm.comlib.ui.BaseFragmentActivity;
import com.mj.hx.yl.push.PushHandle;

import java.lang.reflect.Type;



public class PushScanHandle implements PushHandle<String> {

    @Override
    public Type getDataClass() {
        return String.class;
    }

    @Override
    public boolean handler(Context context, String cmd) {
        BaseFragmentActivity activity = BaseFragmentActivity.getLastActivity();
        if (activity != null && !activity.isExit())
            RouterUINavigation.getInstance().execCmd(activity, cmd);
        return true;
    }
}
